package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_pms_pes database table.
 * 
 */
@Entity
@Table(name="per_pms_pes")
@NamedQuery(name="PerPmsPes.findAll", query="SELECT p FROM PerPmsPes p")
public class PerPmsPes implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int pesid;

	private String pesgad;

	private String pesname;

	private String pesurl;

	//bi-directional many-to-one association to PerPmsFun
	@OneToMany(mappedBy="perPmsPe")
	private List<PerPmsFun> perPmsFuns;

	//bi-directional many-to-one association to PerPmsYQ
	@OneToMany(mappedBy="perPmsPe")
	private List<PerPmsYQ> perPmsYQs;

	//bi-directional many-to-one association to PerPmsZQ
	@OneToMany(mappedBy="perPmsPe")
	private List<PerPmsZQ> perPmsZQs;

	public PerPmsPes() {
	}

	public int getPesid() {
		return this.pesid;
	}

	public void setPesid(int pesid) {
		this.pesid = pesid;
	}

	public String getPesgad() {
		return this.pesgad;
	}

	public void setPesgad(String pesgad) {
		this.pesgad = pesgad;
	}

	public String getPesname() {
		return this.pesname;
	}

	public void setPesname(String pesname) {
		this.pesname = pesname;
	}

	public String getPesurl() {
		return this.pesurl;
	}

	public void setPesurl(String pesurl) {
		this.pesurl = pesurl;
	}

	public List<PerPmsFun> getPerPmsFuns() {
		return this.perPmsFuns;
	}

	public void setPerPmsFuns(List<PerPmsFun> perPmsFuns) {
		this.perPmsFuns = perPmsFuns;
	}

	public PerPmsFun addPerPmsFun(PerPmsFun perPmsFun) {
		getPerPmsFuns().add(perPmsFun);
		perPmsFun.setPerPmsPe(this);

		return perPmsFun;
	}

	public PerPmsFun removePerPmsFun(PerPmsFun perPmsFun) {
		getPerPmsFuns().remove(perPmsFun);
		perPmsFun.setPerPmsPe(null);

		return perPmsFun;
	}

	public List<PerPmsYQ> getPerPmsYQs() {
		return this.perPmsYQs;
	}

	public void setPerPmsYQs(List<PerPmsYQ> perPmsYQs) {
		this.perPmsYQs = perPmsYQs;
	}

	public PerPmsYQ addPerPmsYQ(PerPmsYQ perPmsYQ) {
		getPerPmsYQs().add(perPmsYQ);
		perPmsYQ.setPerPmsPe(this);

		return perPmsYQ;
	}

	public PerPmsYQ removePerPmsYQ(PerPmsYQ perPmsYQ) {
		getPerPmsYQs().remove(perPmsYQ);
		perPmsYQ.setPerPmsPe(null);

		return perPmsYQ;
	}

	public List<PerPmsZQ> getPerPmsZQs() {
		return this.perPmsZQs;
	}

	public void setPerPmsZQs(List<PerPmsZQ> perPmsZQs) {
		this.perPmsZQs = perPmsZQs;
	}

	public PerPmsZQ addPerPmsZQ(PerPmsZQ perPmsZQ) {
		getPerPmsZQs().add(perPmsZQ);
		perPmsZQ.setPerPmsPe(this);

		return perPmsZQ;
	}

	public PerPmsZQ removePerPmsZQ(PerPmsZQ perPmsZQ) {
		getPerPmsZQs().remove(perPmsZQ);
		perPmsZQ.setPerPmsPe(null);

		return perPmsZQ;
	}

}